
 
 F u n c t i o n :   r e m o v e D a t a ( o b j e c t ,   k e y ) 
 
 
 
 D e s c r i p t i o n :   R e m o v e s   d a t a   b o u n d   t o   a n   o b j e c t . 
 
 
 
 R e t u r n s :   d o m E l e m e n t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   R e m o v e   a   s p e c i f i c   d a t a   v a l u e   f r o m   a n   o b j e c t 
 
 $ A . r e m o v e D a t a ( d o m E l e m e n t ,   " p o i n t s T o " ) ; 
 
 
 
 / /   R e m o v e   a l l   d a t a   b o u n d   t o   a n   o b j e c t . 
 
 $ A . r e m o v e D a t a ( d o m E l e m e n t ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 / /   R e m o v e   a   s p e c i f i c   d a t a   v a l u e   f r o m   a n   o b j e c t 
 
 v a r   m y C h a i n   =   $ A ( d o m E l e m e n t ) . r e m o v e D a t a ( " p o i n t s T o " ) ; 
 
 
 
 / /   R e m o v e   a l l   d a t a   b o u n d   t o   a n   o b j e c t . 
 
 v a r   m y C h a i n   =   $ A ( d o m E l e m e n t ) . r e m o v e D a t a ( ) ; 
 
 
 
 / /   T o   r e t u r n   t h e   m o d i f i e d   e l e m e n t   w i t h i n   a   c h a i n ,   u s e   t h e   " r e t u r n ( ) "   m e t h o d . 
 
 
 
 v a r   m y E l e m e n t   =   m y C h a i n . r e t u r n ( ) ; 
 
 